package com.addplus.townmall.server.api.mapper.town;

import com.addplus.townmall.server.api.model.town.OrderDistribution;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 订单佣金分成表 Mapper 接口
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-12-28
 */
public interface OrderDistributionMapper extends BaseAddMapper<OrderDistribution> {


    @Select("select  * from order_distribution  a where a.order_id=#{orderId} and a.order_type=#{orderType} ")
    OrderDistribution getOrderDistribution(@Param("orderId")Integer orderId,@Param("orderType") Integer orderType);
}
